home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3037 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  917 b 

  1. Path: serra.unipi.it!news
  2. From: Luca Fiorani <fioranil@ilc.pi.cnr.it>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Funcion STRCMP no lexicographical
  5. Date: 25 Jan 1996 17:19:45 GMT
  6. Organization: Universita' di Pisa
  7. Message-ID: <4e8e3h$k0s@serra.unipi.it>
  8. NNTP-Posting-Host: helen.cli.di.unipi.it
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.1N (X11; I; SunOS 4.1.3_U1 sun4m)
  13. X-URL: news:comp.lang.c
  14.  
  15. Developing GCC/G++ programs under sparc-sun-sunOS4.1.3 , i need simply to
  16. compare arrays that may include characters>127(dec.).
  17. STRCMP or MEMCMP do this lexicographically, that is what i don't want to do.
  18. Are there other functions that compares 2 arrays NOT lexicografically ?
  19. (the matter is that lexicographically chars>127 are BEFORE chars<=127)
  20.  
  21. Thanks
  22.  
  23. Luca <fioranil@ilc.pi.cnr.it>
  24.  
  25. P.S.:i wish to avoid explicit byte-to-byte comparison in my program.
  26.  
  27.